import type { Request, Response } from 'express';
import type { SrcList } from './data.d';

function getBannerList(req: Request, res: Response) {
    const params = req.query as any;

    const count = params.count * 1 || 20;

    const result = [
        {
            src: 'https://www.cmdw.vip/media/20201207180049qR.png',
            alt: '111'
        },
        {
            src: 'https://www.cmdw.vip/media/20210325004331yV.jpg',
            alt: '111'
        },
        {
            src: 'https://www.cmdw.vip/media/20201211004602UV.jpg',
            alt: '111'
        }
    ]
    res.json(result);
}

export default {
    'GET /api/banner_list': getBannerList
}